]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Rename "warning" css class to "battery-warning"
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 5 Dec 2019 12:04:38 +0000 (13:04 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Jan 2020 13:46:39 +0000 (14:46 +0100)
Since this css class is specifically about the low-battery warning, make
the class name a bit more specific, too.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/935

data/theme/gnome-shell-sass/widgets/_end-session-dialog.scss
js/ui/endSessionDialog.js

index 15b975f12d8ffc6ce3c2ad343523b0b2a4deab08..73116b86aa487e6daf1bd9ee3bb22d8157e63836 100644 (file)
@@ -24,7 +24,7 @@ $end_session_dialog_width: 28em;
   }
 }
 
-.end-session-dialog-warning {
+.end-session-dialog-battery-warning {
   width: $end_session_dialog_width;
   color: $warning_color;
   padding-top: 6px;
@@ -77,4 +77,4 @@ $end_session_dialog_width: 28em;
 .end-session-dialog-app-list-item-description {
   color: darken($fg_color,5%);
   @include fontsize($base_font_size - 1);
-}
\ No newline at end of file
+}
index 797239449c7ac34c5ed160d60b8e9eeaa43d307b..7c8961d3b17106b7a864ac5c311f4d29a920082b 100644 (file)
@@ -297,7 +297,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._checkBox.connect('clicked', this._sync.bind(this));
         messageLayout.add(this._checkBox);
 
-        this._batteryWarning = new St.Label({ style_class: 'end-session-dialog-warning',
+        this._batteryWarning = new St.Label({ style_class: 'end-session-dialog-battery-warning',
                                               text: _("Running on battery power: Please plug in before installing updates.") });
         this._batteryWarning.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this._batteryWarning.clutter_text.line_wrap = true;